﻿using System.Collections.Generic;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OpenIotModel {
    [Table("Devices")]//注意Table标签
    public class Device {
        [Display(Name = "ID")]
        public string ID { get; set; }
        [Display(Name = "名称")]
        public string? DeviceName { get; set; }

        [Display(Name = "排序")]
        public uint Index { get; set; }

        [Display(Name = "描述")]
        public string? Description { get; set; }

        [Display(Name = "启动")]
        public bool AutoStart { get; set; }

        [Display(Name = "指令间隔ms")]
        public uint CmdPeriod { get; set; }

        [Display(Name = "驱动名")]
        
        public string DriverName { get; set; }

        [Display(Name = "驱动版本")]
        public string version { get; set; }

        [Display(Name = "ip")]
        public string ip { get; set; }

        [Display(Name = "端口")]
        public int port { get; set; }

        [Display(Name = "位号")]
        public byte slot { get; set; }

        [Display(Name = "机架号")]
        public byte rack { get; set; }
    }
  
}